<?php
/**
 * Pertyler DatabaseManagement
 * DatabaseModel
 * Privilege Abstract Class
 *
 * @author	Emre Hasegeli <hasegeli@gmail.com>
 * @license	GNU General Public License v3
 */

namespace Pertyler;

abstract class aPrivilege
{
	private $parent;

	private $id;

	private $name;

	private $language;

	final public function __construct(Table $parent,
			$id,
			$name,
			Language $language)
	{
		$this->parent = $parent;

		$this->id = $id;

		$this->name = $name;

		$this->language = $language;
	}

	final public function Id()
	{
		return $this->id;
	}

	final public function __ToString()
	{
		return $this->name;
	}

	final public function Language()
	{
		return $this->language;
	}
}
